package com.tttshaoqi.server.mapper;

import com.tttshaoqi.pojo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    int insert(User user);
    User findById(@Param("id") Long id);
    User findByUsername(@Param("username") String username);
    User findByPhone(@Param("phone") String phone);
    int updateProfile(User user);
    int updatePassword(@Param("id") Long id, @Param("passwordHash") String passwordHash);
}


